package com.stylefeng.guns.wx.handler;

import com.stylefeng.guns.modular.system.service.IDeptService;
import com.stylefeng.guns.modular.system.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class BeanPostProcessor {

    @Autowired
    private IDeptService deptService;

    @Autowired
    private IUserService userService;

    @Autowired
    private ContactHandler contactHandler;

    @PostConstruct
    public void init() {
        contactHandler.setDeptService(deptService);
        contactHandler.setUserService(userService);
    }

}
